// @ts-ignore
import {RouteRecordRaw} from "vue-router"

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'login',
        component: () => import('./modules/login.vue'),
        meta: {
            title: '管理员登录',
            isShow: false
        }
    },
    {
        path: '/index',
        component: () => import('./modules/layout/index.vue'),
        children: [
            {
                path: '/rank',
                name: 'rank',
                component: () => import('./modules/index.vue'),
                meta: {
                    title: '数据查看',
                    isShow: true,
                    keepAlive: false,
                    icon: 'eiconfont e-icon-yumaopai-01'
                }
            },
            {
                path: '/userM',
                name: 'userM',
                component: () => import('./modules/userM.vue'),
                meta: {
                    title: '管理员账号管理',
                    isShow: true,
                    keepAlive: false,
                    icon: 'eiconfont e-icon-xianxinggongjutubiao'
                }
            },
            {
                path: '/userU',
                name: 'userU',
                component: () => import('./modules/userU.vue'),
                meta: {
                    title: '用户账号管理',
                    isShow: true,
                    keepAlive: false,
                    icon: 'eiconfont e-icon-xianxinggongjutubiao'
                }
            },
            {
                path: '/info',
                name: 'info',
                component: () => import('./modules/info.vue'),
                meta: {
                    title: '旅游路线管理',
                    isShow: true,
                    keepAlive: false,
                    icon: 'eiconfont e-icon-yumaopai-01'
                }
            },
            {
                path: '/infoUpAndAdd',
                name: 'infoUpAndAdd',
                component: () => import('./modules/infoUpAndAdd.vue'),
                meta: {
                    title: '路线添加或编辑',
                    isShow: false,
                    keepAlive: false
                }
            },
            {
                path: '/infoTon',
                name: 'infoTon',
                component: () => import('./modules/infoTon.vue'),
                meta: {
                    title: '旅游资讯管理',
                    isShow: true,
                    keepAlive: false,
                    icon: 'eiconfont e-icon-shexiangji'
                }
            },
            {
                path: '/infoTonUpAndAdd',
                name: 'infoTonUpAndAdd',
                component: () => import('./modules/infoTonUpAndAdd.vue'),
                meta: {
                    title: '旅游资讯添加或编辑',
                    isShow: false,
                    keepAlive: false
                }
            },
            {
                path: '/attraction',
                name: 'attraction',
                component: () => import('./modules/attraction.vue'),
                meta: {
                    title: '景点管理',
                    isShow: true,
                    keepAlive: false,
                    icon: 'eiconfont e-icon-xianxingbenzitubiao1'
                }
            },
            {
                path: '/attractionUpAndAdd',
                name: 'attractionUpAndAdd',
                component: () => import('./modules/attractionUpAndAdd.vue'),
                meta: {
                    title: '景点添加或编辑',
                    isShow: false,
                    keepAlive: false
                }
            },
            {
                path: '/useruUpAndAdd',
                name: 'useruUpAndAdd',
                component: () => import('./modules/useruUpAndAdd.vue'),
                meta: {
                    title: '用户添加或编辑',
                    isShow: false,
                    keepAlive: false
                }
            },
            {
                path: '/userMUpAndAdd',
                name: 'userMUpAndAdd',
                component: () => import('./modules/userMUpAndAdd.vue'),
                meta: {
                    title: '管理员添加或编辑',
                    isShow: false,
                    keepAlive: false
                }
            },
            {
                path: '/comment',
                name: 'comment',
                component: () => import('./modules/comment.vue'),
                meta: {
                    title: '评论管理',
                    isShow: true,
                    keepAlive: false,
                    icon: 'eiconfont e-icon-yumaopai-01'
                }
            }
            , {
                path: "/commentDetail",
                name: "commentDetail",
                component: () => import("./modules/commentDetail.vue"),
                meta: {
                    title: "评论详情",
                    isShow: false,
                    keepAlive: false
                }
            }
        ]
    }
]

export default routes
